<?php
/* @var $this SearchController */

$this->breadcrumbs=array(
	'Tìm kiếm với từ khóa "'.$keyword.'"',
);
?>
<div class="cate-box">
   <div class="woocommerce">
      <ul class="list-products">
         <?php if(count($list) > 0){
            foreach($list as $item){
               $link = $model->linkDetail($item['book_id'],$item['book_name']);
               ?>
               <li class="product-item relative">
                  <a href="<?php echo $link?>">
                     <div class="left">
                        <img alt="<?php echo $item['book_name']?>" src="<?php echo Yii::app()->request->baseUrl?>/uploads/pictures/product/thumb_<?php echo $item['book_image']?>" />
                     </div>
                     <div class="info">
                        <h3 class="font-12"><?php echo $item['book_name']?></h3>
                        <p class="num-page">Số trang: <?php echo Str::formatNumber($item['book_num_page'])?></p>
                        <p class="publisher">Tác giả: <?php echo $item['aut_name']?></p>
                        <p class="price"><?php echo Str::formatNumber($item['book_price'])?> đ</p>
                     </div>
                  </a>
                  <div class="option absolute">
                     <p class="btn btn-info add-to-cart" onclick="adToCart(<?php echo $item['book_id']?>)">Giỏ hàng</p>
                  </div>
               </li>
            <?php }
         }else{?>
         <div class="no-content">
            Không có sản phẩm nào
         </div>
         <?php }?>
      </ul>
   </div>
</div>